/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn;

import org.jsoup.Jsoup;

/**
 * <p>Project: jse2303 - My
 * <p>Powered by webrx On 2023-07-17 10:48:28
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class My {
    public static void main(String[] args) {
        //System.out.println(3 / 0);
        int[] ns = {1, 2, 3};
        try {
            System.out.println(ns[ns.length]);
        } catch (Exception e) {
            System.out.println("数组下载错误，最大为2");
        }

        try {
            System.out.println(Jsoup.connect("http://www.mi1234123.com").get().title());
        } catch (Exception e) {
            System.out.println("获取数据失败，请检查网络和网址");
        }
        System.out.println("ok");
    }
}
